package com.kupurui.asteacher.adapter;

import android.content.Context;

import com.android.frame.adapter.CommonAdapter;
import com.android.frame.adapter.ViewHolder;
import com.kupurui.asteacher.R;
import com.kupurui.asteacher.bean.ClassDatailsInfo;

import java.util.List;

/**
 * Created by Administrator on 2017/7/18.
 */

public class ClassDatailsAdapter extends CommonAdapter<ClassDatailsInfo.StudentListBean> {
    public ClassDatailsAdapter(Context context, List<ClassDatailsInfo.StudentListBean> mList, int itemLayoutId) {
        super(context, mList, itemLayoutId);
    }

    @Override
    public void convert(ViewHolder holder, ClassDatailsInfo.StudentListBean item, int positon) {
        holder.setImageByUrl(R.id.imgv_head,item.getImg());
        holder.setTextViewText(R.id.tv_name,item.getName());
        holder.setTextViewText(R.id.tv_phone,item.getPhone());
        holder.setTextViewText(R.id.tv_qq,item.getQq());
    }
}
